package days48;

import java.util.Scanner;

public class nine {
    static int count=0;
    public static void main(String[] args) {

        Scanner scanner=new Scanner(System.in);
        int n=scanner.nextInt();
        int m=scanner.nextInt();
        int[][]arr=new int[m][n];
        int a=0;
        int b=0;
        dp(arr,a,m,b,n);
        System.out.println(count);
    }

    private static void dp(int[][] arr, int a, int m, int b, int n) {
        if(a>m&&b>n){
            count++;
            return;
        }

        if(a<m){
            dp( arr,a+1,m, b, n);
        }
        if(b<n){
            dp(arr,a,m,b+1,n);
        }
    }

    public static void main1(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int a=scanner.nextInt();
        int b=scanner.nextInt();
        while (b!=0) {
             int c=a^b;//加法和异或的结果一样
             b=(a&b)<<1;//如果有相同的就进位，进玩位再继续相加
             a=c;
        }
        System.out.println(a);
    }
}
